import service from '@/utils/request'
import axios from 'axios'

export const useForumApi = (id: number) => {
	return service.get('/kyy/forum/' + id)
}

export const useForumSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/kyy/forum', dataForm)
	} else {
		return service.post('/kyy/forum', dataForm)
	}
}

export function useForumTagsApi() {
	return axios.get('/kyy/forum/tags')
}
